export default {
  namespaced: true,
  state: () => {
    return {
      // 用户信息
      profile: {
        id: '',

        avatar: '',
        nickname: '',
        account: '',
        mobile: '',
        token: ''
      },

      // 需要回调的地址
      redirectUrl: '/'

    }
  },

  mutations: {
    setUser (state, payload) {
      state.profile = payload
    },

    setRedirectUrl (state, url) {
      state.redirectUrl = url
    }
  }
}
